From a9ddde26e2ad55cd61095d835063546f980ac3fd Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Mon, 26 Feb 2007 14:47:54 +0000 Subject: [PATCH] [TOOLS] fix sizeof() usage in xc_core Signed-off-by: Tim Deegan --- tools/libxc/xc_core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/libxc/xc_core.c b/tools/libxc/xc_core.c index 5a23667667..7f6f0ee67a 100644 --- a/tools/libxc/xc_core.c +++ b/tools/libxc/xc_core.c @@ -85,7 +85,7 @@ xc_core_strtab_init(void) { struct xc_core_strtab *strtab; char *strings; - strtab = malloc(sizeof(strtab)); + strtab = malloc(sizeof(*strtab)); if ( strtab == NULL ) return NULL; -- 2.30.2